//src/api/user/index.js

import service from "../request.js";

export function LoginInfo(query) {
  return service({
    method: "POST",
    url: "/permission/LoginInfo",
    data: query,
  });
}
export function logout() {
  return service({
    method: "get",
    url: "/permission/logout",
  });
}
export function registerUser(user) {
  return service({
    method: "POST",
    url: "/permission/Register",
    data: user,
  });
}
export function noticeLists(query) {
  return service({
    method: "get",
    url: "/permission/noticeLists",
    data: query,
  });
}
export function updateUser(user) {
  return service({
    method: "POST",
    url: "/permission/update",
    data: user,
  });
}
export function getMenuList(query) {
  return service({
    method: "get",
    url: "/permission/getMenuList",
    data: query,
  });
}
export function getDau() {
  return service({
    method: "get",
    url: "/permission/dau",
  });
}
export function getUserCount() {
  return service({
    method: "get",
    url: "/permission/userCount",
  });
}
export function getCountAll() {
  return service({
    method: "get",
    url: "/sale/countAll",
  });
}
export function getPvNum() {
  return service({
    method: "get",
    url: "/permission/pvCount",
  });
}
export function bindingNum(data) {
  return service({
    method: "post",
    url: "/permission/binding",
    data
  });
}
export function checkBindingNum(data) {
  return service({
    method: "post",
    url: "/permission/checkBinding",
    data
  });
}
export function getRecordsByNum(data) {
  return service({
    method: "post",
    url: "/saleRecord/list",
    data
  });
}
export function countPay(data) {
  return service({
    method: "post",
    url: "/saleRecord/countPay",
    data
  });
}
export function userList(data) {
  return service({
    method: "post",
    url: "/permission/userList",
    data
  });
}
export function deleteUser(data) {
  return service({
    method: "get",
    url: `/permission/deleteUser/${data}`,
  });
}